﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Smartec.Accounts.Camel.AMS.Model.Entities;
using Smartec.Accounts.Camel.AMS.Model.Facades;

namespace Smartec.Accounts.Camel.AMS.WebApp.Controllers
{
    public class TopicController : Controller
    {
        //
        // GET: /Topic/

        public ActionResult Index(string topicName)
        {
            Topic topic = TopicFacade.GetTopicByName(topicName);
            if (topic == null)
            {
                topic = new Topic();
            }
            return View(topic);
        }

    }
}
